﻿<Page
    x:Class="SimpleLayoutDemo.Views.ViewBoxPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:SimpleLayoutDemo.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="320" />
        </Grid.ColumnDefinitions>

        <Viewbox Grid.Column="0" Stretch="Uniform">
            <StackPanel Orientation="Horizontal">
                <Rectangle Fill="Blue" Width="220" Height="220" />
                <Ellipse Fill="Red" Width="175" Height="175" />
                <Polygon Fill="Green" Points="0,0 275,0 275,200"
                    StrokeThickness="2" />
            </StackPanel>
        </Viewbox>

        <Viewbox Grid.Column="1" Stretch="Uniform">
            <StackPanel Orientation="Horizontal">
                <Rectangle Fill="Blue" Width="220" Height="220" />
                <Ellipse Fill="Red" Width="175" Height="175" />
                <Polygon Fill="Green" Points="0,0 275,0 275,200"
                    StrokeThickness="2" />
            </StackPanel>
        </Viewbox>

    </Grid>
</Page>